/*
* Copyrigth 2008 Company All rigths reserved
* File Name: ILaboratory.cs
* Created By:    Wenbin.Xu
* Created Date:   2013/7/8 16:26:57
* Description:    Laboratory模块的接口
* Change History: 
* 
* */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrainingsApp.Model;
using TrainingsApp.DAL;
using System.Web.UI.WebControls;

namespace TrainingsApp.Logic {
    public class TS_Preview_Logic {
        public static TS_Preview_Collecion TS_Preview_ListByPaging(Dictionary<string, object> parameters, int pageSize, int pageIndex) {
            return TS_Preview_DAL.TS_Preview_ListByPaging(parameters, pageSize, pageIndex);
        }

        public static TS_Preview_Collecion TS_Preview_ListByPaging2(Dictionary<string, object> parameters, int pageSize, int pageIndex) {
            return TS_Preview_DAL.TS_Preview_ListByPaging2(parameters, pageSize, pageIndex);
        }

        public static TS_Preview_Collecion TS_Preview_QuickQueryListByPaging(Dictionary<string, object> parameters, int pageSize, int pageIndex) {
            return TS_Preview_DAL.TS_Preview_QuickQueryListByPaging(parameters, pageSize, pageIndex);
        }

        public static TS_Preview_Collecion TS_Preview_StudentListByPaging(Dictionary<string, object> parameters, int pageSize, int pageIndex) {
            return TS_Preview_DAL.TS_Preview_StudentListByPaging(parameters, pageSize, pageIndex);
        }

        public static TS_Preview_Entity TS_Preview_View(System.Guid PreviewId) {
            return TS_Preview_DAL.TS_Preview_View(PreviewId);
        }

        public static List<TS_Preview_Entity> TS_Preview_ViewByBatch(System.Guid batch) {
            return TS_Preview_DAL.TS_Preview_ViewByBatch(batch);
        }

        public static TS_Preview_Entity TS_Preview_Add(TS_Preview_Entity entity) {
            return TS_Preview_DAL.TS_Preview_Add(entity);
        }

        public static void TS_Preview_Update(TS_Preview_Entity entity) {
            TS_Preview_DAL.TS_Preview_Update(entity);
        }

        public static void TS_Preview_Delete(System.Guid PreviewId) {
            TS_Preview_DAL.TS_Preview_Delete(PreviewId);
        }


        public static List<TS_Preview_Entity> TS_Preview_Result_TopByStudent(long userId) {
            return TS_Preview_Result_DAL.TS_Preview_Result_TopByStudent(userId);

        }

        public static List<TS_Preview_Entity> TS_Preview_Result_TopByTeacher(long userId) {
            return TS_Preview_Result_DAL.TS_Preview_Result_TopByTeacher(userId);
        }

        public static string TS_Question_GetFirstPreviewByQuestionId(System.Guid QuestionId) {
            return TS_Preview_DAL.TS_Question_GetFirstPreviewByQuestionId(QuestionId);
        }

        public static TS_Preview_Entity TS_Question_IsPreviewPublish(Dictionary<string, object> parameters) {
            return TS_Preview_DAL.TS_Question_IsPreviewPublish(parameters);
        }

        public static TS_Preview_Entity TS_Question_IsPreviewPublish2(Dictionary<string, object> parameters) {
            return TS_Preview_DAL.TS_Question_IsPreviewPublish2(parameters);
        }

        public static List<TS_Preview_Entity> TS_Preview_PreviewGroupByTeacher(System.Guid PreviewId) {
            return TS_Preview_DAL.TS_Preview_PreviewGroupByTeacher(PreviewId);
        }

        public static TS_Preview_Entity TS_Preview_ViewGroupByPreviewId(System.Guid PreviewId) {
            return TS_Preview_DAL.TS_Preview_ViewGroupByPreviewId(PreviewId);
        }

        public static List<TS_Preview_Entity> TS_Preview_GetClassesByQuestionId(Dictionary<string, object> parameters) {
            return TS_Preview_DAL.TS_Preview_GetClassesByQuestionId(parameters);
        }
    }
}
